|
DX11 SET WINDOW CLIENT SIZE
Sets the size of the render window's client area in pixels.
This function will resize the actual accessible part of the window, its borders and caption bar will then be added to this size (assuming your window has such)
so the window size will be slightly larger in this case.
Take note that the display mode is what determines the resolution of the back buffer. If you set your window size so that the client
area does not exactly match the display mode resolution, the output will be stretched to fit, which will result in a less sharp image.
To work around this, you can set the display mode to a high enough one (such that it is larger or equal to the client area of the window)
and then set the main camera's viewport (DX11 SET CAMERA VIEWPORT) to match the window's client size. If you do it this way you probably
want to also change the camera's aspect ratio to match (DX11 SET CAMERA ASPECT RATIO); the normal value for this is the viewport width
divided by the viewport height.
Take note that this function has no effect in fullscreen mode.
DX11 SET WINDOW CLIENT SIZE width, height
width Dword The new width of the window's client area, in pixels.
height Dword The new height of the window's client area, in pixels.
This function does not return a value.
DISPLAY Functions Menu
DX11 Function Categories
|